import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Compact TextField',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        appBar: AppBar(title: const Text('Compact TextField')),
        body: Padding(
          padding: EdgeInsets.all(20.0),
          child: Table(
            // border: TableBorder.all(),
            children: const [
              TableRow(
                children: [
                  TableRowInkWell(child: Text('1')),
                  TableRowInkWell(child: Text('部门1')),
                ],
              ),
            ],
          ),
        ),
      ),
    );
  }
}
